package ui;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;

/**
 * 
 * @author ido
 *
 */
public class MainFrame extends JFrame {

	MainFrame() {
		super();
		initGui();
	}
	
	private void initGui() {
		
		getContentPane().setLayout(new BorderLayout(12,12));
		getContentPane().add(new BoardPanel());
		setTitle("Aba Pini SuDoKu solver");
		setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		pack();
		setVisible(true);
	
		((JPanel)getContentPane()).setBorder(BorderFactory.createEmptyBorder(12,12,12,12));
		BoardPanel.centre(this);
		setVisible(true);

	}
}
